a = [
    [1],
    [1,1]
]
n = 10
for row in range(2,n):
    temp = [1]
    for col in range(1,row):
        temp.append(a[row-1][col-1]+a[row-1][col])
    temp.append(1)
    a.append(temp)

r = len(a)
for i in range(r):
    print(' '*(r-(i+1)),end='')
    print(a[i])